/**
 * @Title: MesHandlerInterceptorAdapter.java
 * @Description: <p>
 * Copyright(C) 2018-2020 力倍思
 * Company:   骏业MES
 * @version V1.0
 * @Date: 2021/4/12
 * @author: DaiChao
 * <p>
 * 修改历史:
 * Date                 Author        Version        Discription
 * -----------------------------------------------------------------------------------
 * 2021/4/12             DaiChao      1.0            初始化版本
 */
package com.example.project.common.advice;

import cn.hutool.core.date.DateUtil;
import com.example.project.api.model.TbUser;
import com.example.project.api.service.TbUserService;
import com.example.project.common.utils.Utils;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.ObjectUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.AsyncHandlerInterceptor;
import org.springframework.web.servlet.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.Map;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

@Slf4j
@Component
public class SysHandlerInterceptorAdapter implements AsyncHandlerInterceptor {

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        return true;
    }

    @Override
    public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
    }
}
